#ifndef __JSMPI_CARRAY_H__
#define __JSMPI_CARRAY_H__

#define TYPE_INTEGER 42
#define TYPE_DOUBLE 47
#define TYPE_STRING 49

typedef struct carray_gen_s
{
    int size;
    void *array;
    int is_slice;
} carray_gen;

typedef struct carray_string_s
{
    int size;
    char *array;
    int is_slice;
} carray_string;


typedef struct carray_int_s
{
    int size;
    int *array;
    int is_slice;
} carray_int;

typedef struct carray_double_s
{
    int size;
    double *array;
    int is_slice;
} carray_double;

#endif
